package com.example.demo;


import cn.hutool.core.io.file.FileReader;

import java.util.HashMap;
import java.util.List;

public class tttt {

    public static void main(String[] args) {
        FileReader fileReader = new FileReader("C:\\Users\\Administrator\\Desktop\\stopword.dic");
        HashMap<String, Integer> dic = new HashMap<>();
        List<String> lines = fileReader.readLines();
        for (int i = 0; i < lines.size(); i++) {
            dic.put(lines.get(i),i);
        }
        System.out.println(dic.get("dsaxzcvwd"));
    }
}
